package com.icez.base_util_library.extension

import android.content.Context
import com.icez.base_util_library.CompressUtil
import java.io.File

/**
 *  图片file压缩成webp
 * 
 * @author Icez
 * @param context 上下文
 * @param quality 压缩率
 */
suspend fun File?.toSECompressImageForWebp(
    context: Context,
    quality: Int
): File? {
    return CompressUtil.instance.compressImageForWebp(context, this?.absolutePath, quality)
}